﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Model
{
    /// <summary>
    /// ID生成类
    /// </summary>
    public static class IdGenerater
    {
        private static ushort value;

        /// <summary>
        /// 生成ID方法
        /// </summary>
        /// <returns></returns>
        public static long GeneraterId()
        {
            return ++value;
        }
    }
}
